/**
 * 
 */
package com.ginger.zookeeper;

import java.util.List;

import org.apache.zookeeper.AsyncCallback.ChildrenCallback;

/**
 * @Description: 子节点回调函数
 * @author 姜锋
 * @date 2018年9月2日 下午6:01:43 
 * @version V1.0   
 *
 */
public class ChildreanCallback implements ChildrenCallback {
	/* （非 Javadoc）
	 * @see org.apache.zookeeper.AsyncCallback.ChildrenCallback#processResult(int, java.lang.String, java.lang.Object, java.util.List)
	 */
	@Override
	public void processResult(int rc, String path, Object ctx, List<String> children) {
		for (String sss : children) {
			System.out.println(sss);
		}
		System.out.println("ChildrenCallback"+path);
		System.out.println((String)ctx);
	}
}
